<?php

class Lecturer_IndexController extends Zend_Controller_Action
{

	public function init()
    {
    	/* Initialize action controller here */
    }

    public function indexAction()
    {/*
  		$form = new Application_Form_Schedule();
    	$form->appendValidationEngineFiles($this->view); 
    	$polish = BH_TranslatePL::getPolishTranslation();
  		$translate = new Zend_Translate('array', $polish, 'pl');
  		$form->setTranslator($translate);
    	
    	$form->submit->setLabel('Zapisz');
		$this->view->ScheduleForm = $form;
   	
    	$request = $this->getRequest();
    	if ($request->isPost()) {
    		if ($form->isValid($request->getPost())) {
    			$schedule = new Application_Model_Entities_AcademicDegree();
    			$schedule->setDesignation( $form->getValue('designation'));
    			$scheduleDao = new Application_Model_Dao_AcademicDegree();
    			$scheduleDao->saveAcademicDegree($schedule);
    		
    			$this->_helper->redirector('index');		
    		}
    	}
    	
    	*/
    	$this->view->calendar;
    }

    public function testAction() {
		
    	$dao = new Application_Model_Dao_Cathedral();
    	$test = $dao->getAll();
    	
    	//$faculties = new Application_Model_Entities_Cathedral();		
		//$select = $faculties->fetchAll()->toArray();
    	
  		 foreach ($test as $option) {
            $select[ $option['id'] ] = $option['designation' ] ;
        }
		$this->view->tests = $select;
    	
    	/*
    	$dao = new Application_Model_Dao_Cathedral();
    	$test = $dao->getAll();
    	$select ;
  		 foreach ($test as $option) {
            $select[ $option['id'] ] = $option['designation' ] ;
        }
        //$test = Array( '1' => 'f1', '2' => 'f2');
		$this->view->cathedrals = $select;
		    */
    }


}

